package com.zmzncs.lmtc.module.customer.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zmzncs.lmtc.module.customer.pojo.card.CardDTO;
import com.zmzncs.lmtc.module.customer.pojo.customer.*;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 客户-客户信息 服务类
 * </p>
 *
 * @author 任建波
 * @since 2020-08-26
 */
public interface CustomerService extends IService<Customer> {

    /**获取会员列表*/
    IPage<CustomerDTO> getCustomerPage(CustomerSearchForm searchForm);

    /**会员详情*/
    CustomerDTO getCustomerInfo(Long id);

    /**查询会员账户*/
    List<CardDTO> getCustomerAccount(CustomerAccountForm customerAccountForm);

    /**获取正式会员和潜在会员数量*/
    CustomerVipVO getVipCount();

    /** 手机号/昵称查询会员信息*/
    List<CustomerDTO> getCustInfoByPhoneOrName(String info);

    /**会员账户详情*/
    Map<String,Object> getAccountDetails(Long customerId);

    /**向用户转账*/
    String transfersToUser(String orderCode,String openid, BigDecimal totalFee, String desc);

}
